package com.chaosj.memory.dto;

import lombok.Data;

import java.io.File;
import java.util.List;

/**
 * @className: WriterDto
 * @description:
 * @author: caoyangjie
 * @date: 2022/3/10
 **/
@Data
public class WriterDto {
    private String baseDir;
    private String fillMarkdownPath;
    private List<String> scrapeUris;

    public WriterDto(List<String> asList) {
        fillMarkdownPath = asList.get(1);
        baseDir = new File(fillMarkdownPath).getParent();
        this.scrapeUris = asList.subList(2,asList.size());
    }
}
